package com.thomasmoerman.dci.tmc

import java.util.Date
import org.squeryl.KeyedEntity

class MoneyTransfer(val accountId: Long, val amount: Double) extends KeyedEntity[Long] with Identified {
  
  val id: Long = 0
  
}

object Deposit {
  
  def apply(accountId: Long, amount: Double) = new MoneyTransfer(accountId, amount)

}

object Withdrawal {

  def apply(accountId: Long, amount: Double) = new MoneyTransfer(accountId, -amount)
  
}